package service;

import dao.impl.UserDaoImpl;
import pojo.User;

/**
 * @Author: fancyears·milos·malvis
 * @Description:
 * @Date: Created in  2019/4/19 13:28
 * @Modified By:
 */
public class UserRelease {
    private UserDaoImpl userDaoImpl;
    private String desc;

    public UserRelease(UserDaoImpl userDaoImpl, String desc) {
        this.userDaoImpl = userDaoImpl;
        this.desc = desc;
    }

    public User releaseUser(Long id) {
        User user = (User) userDaoImpl.getUser(id);
        user.setId(id);
        return user;
    }
}
